package com.chuangjiangx.member.basic.dao.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InMbrAccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InMbrAccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("imc.id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("imc.id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("imc.id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("imc.id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("imc.id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imc.id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("imc.id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("imc.id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("imc.id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("imc.id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("imc.id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("imc.id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("imc.member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("imc.member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("imc.member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("imc.member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("imc.member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imc.member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("imc.member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("imc.member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("imc.member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("imc.member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("imc.member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("imc.member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreIsNull() {
            addCriterion("imc.available_score is null");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreIsNotNull() {
            addCriterion("imc.available_score is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreEqualTo(Long value) {
            addCriterion("imc.available_score =", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreNotEqualTo(Long value) {
            addCriterion("imc.available_score <>", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreGreaterThan(Long value) {
            addCriterion("imc.available_score >", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreGreaterThanOrEqualTo(Long value) {
            addCriterion("imc.available_score >=", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreLessThan(Long value) {
            addCriterion("imc.available_score <", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreLessThanOrEqualTo(Long value) {
            addCriterion("imc.available_score <=", value, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreIn(List<Long> values) {
            addCriterion("imc.available_score in", values, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreNotIn(List<Long> values) {
            addCriterion("imc.available_score not in", values, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreBetween(Long value1, Long value2) {
            addCriterion("imc.available_score between", value1, value2, "availableScore");
            return (Criteria) this;
        }

        public Criteria andAvailableScoreNotBetween(Long value1, Long value2) {
            addCriterion("imc.available_score not between", value1, value2, "availableScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIsNull() {
            addCriterion("imc.total_score is null");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIsNotNull() {
            addCriterion("imc.total_score is not null");
            return (Criteria) this;
        }

        public Criteria andTotalScoreEqualTo(Long value) {
            addCriterion("imc.total_score =", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotEqualTo(Long value) {
            addCriterion("imc.total_score <>", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreGreaterThan(Long value) {
            addCriterion("imc.total_score >", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreGreaterThanOrEqualTo(Long value) {
            addCriterion("imc.total_score >=", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreLessThan(Long value) {
            addCriterion("imc.total_score <", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreLessThanOrEqualTo(Long value) {
            addCriterion("imc.total_score <=", value, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreIn(List<Long> values) {
            addCriterion("imc.total_score in", values, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotIn(List<Long> values) {
            addCriterion("imc.total_score not in", values, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreBetween(Long value1, Long value2) {
            addCriterion("imc.total_score between", value1, value2, "totalScore");
            return (Criteria) this;
        }

        public Criteria andTotalScoreNotBetween(Long value1, Long value2) {
            addCriterion("imc.total_score not between", value1, value2, "totalScore");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceIsNull() {
            addCriterion("imc.available_balance is null");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceIsNotNull() {
            addCriterion("imc.available_balance is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceEqualTo(BigDecimal value) {
            addCriterion("imc.available_balance =", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceNotEqualTo(BigDecimal value) {
            addCriterion("imc.available_balance <>", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceGreaterThan(BigDecimal value) {
            addCriterion("imc.available_balance >", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.available_balance >=", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceLessThan(BigDecimal value) {
            addCriterion("imc.available_balance <", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.available_balance <=", value, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceIn(List<BigDecimal> values) {
            addCriterion("imc.available_balance in", values, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceNotIn(List<BigDecimal> values) {
            addCriterion("imc.available_balance not in", values, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.available_balance between", value1, value2, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andAvailableBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.available_balance not between", value1, value2, "availableBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceIsNull() {
            addCriterion("imc.total_recharge_balance is null");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceIsNotNull() {
            addCriterion("imc.total_recharge_balance is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceEqualTo(BigDecimal value) {
            addCriterion("imc.total_recharge_balance =", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceNotEqualTo(BigDecimal value) {
            addCriterion("imc.total_recharge_balance <>", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceGreaterThan(BigDecimal value) {
            addCriterion("imc.total_recharge_balance >", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.total_recharge_balance >=", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceLessThan(BigDecimal value) {
            addCriterion("imc.total_recharge_balance <", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.total_recharge_balance <=", value, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceIn(List<BigDecimal> values) {
            addCriterion("imc.total_recharge_balance in", values, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceNotIn(List<BigDecimal> values) {
            addCriterion("imc.total_recharge_balance not in", values, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.total_recharge_balance between", value1, value2, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalRechargeBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.total_recharge_balance not between", value1, value2, "totalRechargeBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceIsNull() {
            addCriterion("imc.total_give_balance is null");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceIsNotNull() {
            addCriterion("imc.total_give_balance is not null");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceEqualTo(BigDecimal value) {
            addCriterion("imc.total_give_balance =", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceNotEqualTo(BigDecimal value) {
            addCriterion("imc.total_give_balance <>", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceGreaterThan(BigDecimal value) {
            addCriterion("imc.total_give_balance >", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.total_give_balance >=", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceLessThan(BigDecimal value) {
            addCriterion("imc.total_give_balance <", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("imc.total_give_balance <=", value, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceIn(List<BigDecimal> values) {
            addCriterion("imc.total_give_balance in", values, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceNotIn(List<BigDecimal> values) {
            addCriterion("imc.total_give_balance not in", values, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.total_give_balance between", value1, value2, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andTotalGiveBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("imc.total_give_balance not between", value1, value2, "totalGiveBalance");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("imc.create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("imc.create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("imc.create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("imc.create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("imc.create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imc.create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("imc.create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("imc.create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("imc.create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("imc.create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("imc.create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("imc.create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("imc.update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("imc.update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("imc.update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("imc.update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("imc.update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imc.update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("imc.update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("imc.update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("imc.update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("imc.update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("imc.update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("imc.update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountIsNull() {
            addCriterion("imc.total_consume_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountIsNotNull() {
            addCriterion("imc.total_consume_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountEqualTo(Integer value) {
            addCriterion("imc.total_consume_count =", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountNotEqualTo(Integer value) {
            addCriterion("imc.total_consume_count <>", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountGreaterThan(Integer value) {
            addCriterion("imc.total_consume_count >", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("imc.total_consume_count >=", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountLessThan(Integer value) {
            addCriterion("imc.total_consume_count <", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountLessThanOrEqualTo(Integer value) {
            addCriterion("imc.total_consume_count <=", value, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountIn(List<Integer> values) {
            addCriterion("imc.total_consume_count in", values, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountNotIn(List<Integer> values) {
            addCriterion("imc.total_consume_count not in", values, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountBetween(Integer value1, Integer value2) {
            addCriterion("imc.total_consume_count between", value1, value2, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andTotalConsumeCountNotBetween(Integer value1, Integer value2) {
            addCriterion("imc.total_consume_count not between", value1, value2, "totalConsumeCount");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeIsNull() {
            addCriterion("imc.last_consume_time is null");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeIsNotNull() {
            addCriterion("imc.last_consume_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeEqualTo(Date value) {
            addCriterion("imc.last_consume_time =", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeNotEqualTo(Date value) {
            addCriterion("imc.last_consume_time <>", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeGreaterThan(Date value) {
            addCriterion("imc.last_consume_time >", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imc.last_consume_time >=", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeLessThan(Date value) {
            addCriterion("imc.last_consume_time <", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeLessThanOrEqualTo(Date value) {
            addCriterion("imc.last_consume_time <=", value, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeIn(List<Date> values) {
            addCriterion("imc.last_consume_time in", values, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeNotIn(List<Date> values) {
            addCriterion("imc.last_consume_time not in", values, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeBetween(Date value1, Date value2) {
            addCriterion("imc.last_consume_time between", value1, value2, "lastConsumeTime");
            return (Criteria) this;
        }

        public Criteria andLastConsumeTimeNotBetween(Date value1, Date value2) {
            addCriterion("imc.last_consume_time not between", value1, value2, "lastConsumeTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}